<template>
	<div class="container">
		<view class="fliter">
			<view class="input-box single-input">
				<view class="item">
					<u-field :border-bottom="false" label-width="0" :disabled="true" :value="query.policyName" input-align="left"
						placeholder="请选择产品政策" clearable >
						<text class="iconfont icon-Downarrow-R iconfont-right" slot="right" @click="showPicker = true"></text>
					</u-field>
				</view>
				<view class="item">
					<u-field @confirm="isMerchHandel" :border-bottom="false" label-width="0" v-model="query.agentName"
						input-align="left" placeholder="请选择所属代理商或输入代理商编号" clearable>
						<text class="iconfont icon-Downarrow-R iconfont-right" slot="right" @click="isMerchHandel"></text>
					</u-field>
				</view>
				<view class="item">
					<u-field :border-bottom="false" label-width="0" :disabled="true" :value="query.brandName" input-align="left"
						placeholder="请选择机具品牌" clearable >
						<text class="iconfont icon-Downarrow-R iconfont-right" slot="right" @click="isTermShow = true"></text>
					</u-field>
				</view>
			</view>
			<view class="input-box double-input flex-space-between">
				<view class="item">
					<u-field :border-bottom="false" label-width="0" v-model="query.serialnoStart" input-align="left"
						@confirm="search" placeholder="SN号开始值">
						<!-- <text class="iconfont icon-saoma" slot="right" @click.stop="scanCode('start')"></text> -->
					</u-field>
				</view>
				<view class="item">
					<u-field :border-bottom="false" label-width="0" v-model="query.serialnoEnd" input-align="left"
						@confirm="search" placeholder="SN号结束值">
						<!-- <text class="iconfont icon-saoma" slot="right" @click.stop="scanCode('end')"></text> -->
					</u-field>
				</view>

				<view class="item" v-if="type == 'back'">
					<u-field :border-bottom="false" label-width="0" :disabled="true" :value="query.pTypeName" input-align="left"
						placeholder="请选择回拨方式" >
						<text class="iconfont icon-Downarrow-R iconfont-right" slot="right" @click="showAction = true"></text>
					</u-field>
					<u-action-sheet @click="clickItem" :list="pList" v-model="showAction"></u-action-sheet>
				</view>
			</view>
		</view>
		<view class="termial-box" v-if="list.length">
			<view class="total">
				共计
				<text class="blue">{{ totalNum }}</text>
				条数据
			</view>
			<u-checkbox-group active-color="#4286F5" shape="circle" @change="checkboxGroupChange" >
				<!-- @click.stop="toDetail(item)" -->
				<view class="t-item flex" v-model="item.checked" v-for="(item, index) in list" :key="index" >
					<u-checkbox @change="chagneActive" v-model="item.isActive" :name="item.serialno"></u-checkbox>
					<view class="t-info" @click="goDetail(item)">
						<u-cell-item :arrow="false" hover-class="none" :border-bottom="false" title="所属代理商：" :value="item.agentName"
							class="title" />
						<u-cell-item :arrow="false" hover-class="none" :border-bottom="false" title="机具SN号："
							:value="item.serialno" />
						<u-cell-item :arrow="false" hover-class="none" :border-bottom="false" title="绑定状态："
							:value="item.bindStatus == 0 ? '未绑定' : '已绑定'" />
						<u-cell-item :arrow="false" hover-class="none" :border-bottom="false" title="产品政策："
							:value="item.policyName" />
						<!-- <u-cell-item :arrow="false" hover-class="none" :border-bottom="false" title="通讯费：" :value="item.commFee" />
						<u-cell-item :arrow="false" hover-class="none" :border-bottom="false" title="服务费："
							:value="item.serviceFee" /> -->
					</view>
				</view>
			</u-checkbox-group>
			<uni-load-more :status="loadMore"></uni-load-more>
		</view>
		<view class="nodata" v-else>请选择政策</view>
		<div class="terminal-top-bottom" v-if="list.length">
			<div class="terminal-top-bottom-bar">
				<div class="terminal-top-bottom-item-all">
				<!-- <van-checkbox @click="allCheckHandle" v-model="allCheckBoxFlag">全部添加</van-checkbox> -->
					<u-button class="add-all" size="small" shape="circle" :ripple="true" type="primary"
						@click="allCheckHandle">全部添加</u-button>
				</div>
				<!-- <div class="terminal-top-bottom-item-number color:">
           {{ selectCheckbox.length }} 台
        </div>-->
				<div class="terminal-top-bottom-item-number">
					已选
					<span style="color: red">{{ selectCheckbox.length }}</span>
					个
				</div>

				<div class="terminal-top-bottom-item-btn"><u-button class="sure-btn" type="primary" :ripple="true"
						@click="issuedHandle">修改费率</u-button></div>
			</div>
		</div>
		<u-picker title="政策" v-model="showPicker" mode="selector" :range="policyList" range-key="policyName"
			confirm-color="#4888FB" @confirm="onConfirm" @cancel="showPicker = false" />
		<u-picker title="机具品牌" v-model="isTermShow" mode="selector" :range="termList" range-key="brandName"
			confirm-color="#4888FB" @confirm="termConfirm" @cancel="isTermShow = false" />
		<u-picker title="代理商列表" v-model="chooseMerch" mode="selector" :range="serviceRateList" range-key="agentName"
			confirm-color="#4888FB" @confirm="onMerConfirm" @cancel="chooseMerch = false" />
		<u-picker title="修改费率类型" v-model="chooseRate2" mode="selector" :range="canChangeServiceFeeList"
			range-key="rateTypeName" confirm-color="#4888FB" @confirm="onServiceConfirm2" @cancel="chooseRate2 = false" />
		<u-picker title="修改商户费率组" v-model="chooseRateGroup" mode="selector" :range="canChangeGroupList"
			range-key="appShowName" confirm-color="#4888FB" @confirm="onGroupConfirm" @cancel="chooseRateGroup = false" />
		<u-popup v-model="submitPopup" mode="center" :mask-close-able="false" :border-radius="20" width="600" class="alertP"
			zIndex="99">
			<div class="title">确认修改?</div>
			<div class="alertPopupContent">
				<!--<p class="sub-t">请认真核对修改信息</p>-->
				<p class="content">修改数量：{{ selectCheckbox.length }}台</p>
	        <form ref="form" :model="form" :rules="rules" >
				<view class="form" >
					<view class="item">
						<text class="text" prop="payCreditRate">贷记卡费率(%)：</text>
						<input type="digit" class="input"  v-model="form.payCreditRate"  :placeholder="payCreditRateValue" placeholder-class="placeholder-style" @blur="addchange(form.payCreditRate, 'payCreditRate')"/>
					</view>
					<!-- <view class="item" v-show="channel == 'liaoyuan'">
						<text class="text">云闪付费率(%)：</text>
						<input type="number" class="input" v-model="form.quickCreditRate" placeholder="请输入云闪付费率" @blur="addchange(form.quickCreditRate, 'quickCreditRate')"/>
					</view> -->
					<!-- <view class="item">
						<text class="text">支付宝费率(%)：</text>
						<input type="number" class="input" v-model="form.zfbRate" placeholder="请输入支付宝费率" @blur="addchange(form.zfbRate, 'zfbRate')"/>
					</view> -->
					
					<!-- <view class="item">
						<text class="text">微信费率(%)：</text>
						<input type="number" class="input" v-model="form.wxRate" placeholder="请输入微信费率" @blur="addchange(form.wxRate, 'wxRate')"/>
					</view> -->
					
					<!-- <view class="item" v-if="channel !== 'liaoyuan'">
						<text class="text">银联扫码费率(%)：</text>
						<input type="number" class="input" v-model="form.unionPayRate" placeholder="银联扫码费率" @blur="addchange(form.unionPayRate, 'unionPayRate')"/>
					</view> -->
					
					<view class="item" v-if="channel !== 'liaoyuan'">
						<text class="text">贷记卡提现费(元)：</text>
						<input type="digit" class="input" v-model="form.payCreditWithdrawalFee" :placeholder="payCreditWithdrawalFeeValue" />
					</view>
					
					<view class="item">
						<text class="text">汇收银扫码费率：</text>
						<input type="digit" class="input" v-model="form.jhPayRate" :placeholder="jhPayRateValue" />
					</view>
					
					<view class="item">
						<text class="text">汇收银扫码提现费：</text>
						<input type="digit" class="input" v-model="form.jhPayWithdrawalFee" :placeholder="jhPayWithdrawalFeeValue" />
					</view>
					
					<view class="item">
						<text class="text">聚收银扫码费率：</text>
						<input type="digit" class="input" v-model="form.jhptPayRate" :placeholder="jhptPayRateValue" />
					</view>
					
					<view class="item">
						<text class="text">聚收银扫码提现费：</text>
						<input type="digit" class="input" v-model="form.jhptPayWithdrawalFee" :placeholder="jhptPayWithdrawalFeeValue" />
					</view>
					
					<view class="item">
						<text class="text">一码聚扫码费率：</text>
						<input type="digit" class="input" v-model="form.zyPayRate" :placeholder="zyPayRateValue" />
					</view>
					
					<view class="item">
						<text class="text">一码聚扫码提现费：</text>
						<input type="digit" class="input" v-model="form.zyPayWithdrawalFee" :placeholder="zyPayWithdrawalFeeValue" />
					</view>
					
					<!-- <view class="item" v-if="channel === 'liaoyuan'">
						<text class="text">提现费(元)：</text>
						<input type="number" class="input" v-model="form.additionalPro" placeholder="提现费" />
					</view> -->
					
				<!-- 	<view class="item" v-if="channel !== 'liaoyuan'">
						<text class="text">云闪付提现费(元)：</text>
						<input type="number" class="input" v-model="form.quickCreditWithdrawalFee" placeholder="云闪付提现费" />
					</view> -->
					
					<!-- <view class="item" v-if="channel !== 'liaoyuan'">
						<text class="text">银联扫码提现费(元)：</text>
						<input type="number" class="input" v-model="form.unionPayWithdrawalFee" placeholder="银联扫码提现费" />
					</view> -->
					
					<!-- <view class="item" v-if="channel !== 'liaoyuan'">
						<text class="text">支付宝提现费(元)：</text>
						<input type="number" class="input" v-model="form.alipayWithdrawalFee" placeholder="支付宝提现费" />
					</view> -->
					<!-- <view class="item" v-if="channel !== 'liaoyuan'">
						<text class="text">微信提现费(元)：</text>
						<input type="number" class="input" v-model="form.wxWithdrawalFee" placeholder="微信提现费" />
					</view> -->
				</view>
			</form>
			<!--
				<view class="item-input">
					<u-field :border-bottom="false" label-width="0" :disabled="true" :value="query.rateTypeName"
						input-align="left" placeholder="请选择费率类型" >
						<text class="iconfont icon-Downarrow-R iconfont-right" slot="right" @click.stop="clickStopChooseRate('chooseRate2')"></text>
					</u-field>
				</view>
				<view class="item-input">
					<u-field :border-bottom="false" label-width="0" :disabled="true" :value="query.rateGroupName"
						input-align="left" placeholder="请选择商户费率组">
						<text class="iconfont icon-Downarrow-R iconfont-right" slot="right"  @click.stop="clickStopChooseRate('chooseRateGroup')"></text>
					</u-field>
				</view>-
				-->
			</div>
			<div class="sure flex">
				<text class="cancle border" @click="submitPopup = false">取消</text>
				<text class="confirm" @click="sureHandle">确定</text>
			</div>
		</u-popup>
	</div>
</template>

<script>
	import {
		merchBindTermList,
		changeRateApply,
		changeMerchRateGroupList,
		canChangeRateType,
		getDicts,
		brandList,
		agentList,
		getCtTermById,
		queryFeeRange,
		queryLoginFeeRange
	} from '_a/merchRateChange';
	import loadMoreData from '@/mixins/loadmore';
	export default {
		mixins: [loadMoreData],
		name: 'merchRateChange',
		data() {
			return {
				query: {
					bindStatus: ""
				},
				list: [],
				selectCheckbox: [],
				type: 'assign', //assign:划拨 ,back:回拨
				pList: [
					// {
					// 	text: '回拨给平台',
					// 	value: 0
					// },
					{
						text: '回拨给上级',
						value: 1
					}
				],
				showAction: false,
				showPicker: false,
				chooseMerch: false,
				chooseRate2: false,
				submitPopup: false,
				chooseIndex1: 0,
				totalNum: 0,
				pageSize: 20,
				serviceRateList: [],
				canChangeServiceFeeList: [],
				canChangeGroupList: [], //修改费率组
				merchName: '',
				textRateName2: '',
				chooseRateGroup: false,
				form: {
					serialno:"",
					payCreditRate: "",
					quickCreditRate: "",
					zfbRate: "",
					wxRate: "",
					unionPayRate: "",
					additionalPro: "",
					payCreditWithdrawalFee: "",
					quickCreditWithdrawalFee: "",
					alipayWithdrawalFee: "",
					wxWithdrawalFee: "",
					unionPayWithdrawalFee: "",
					jhPayRate: "",
					jhPayWithdrawalFee: "",
					jhptPayRate: "",
					jhptPayWithdrawalFee: "",
					zyPayRate: "",
					zyPayWithdrawalFee: ""
				},
				rules: {},
				agentList: [],
				selectionList: [], //选中列表
				channel: "",
				statusNum:"",
				brandListDataAll: [],
				brandListData: [],
				ctterm: [],
				payCreditRateValue: "",
				payCreditRateVal: "",
				quickCreditRateValue: "",
				quickCreditRateVal: "",
				zfbRateValue: "",
				zfbRateVal: "",
				wxRateValue: "",
				wxRateVal: "",
				unionPayRateValue: "",
				unionPayRateVal: "",
				additionalProValue: "",
				additionalProVal: "",
				payCreditWithdrawalFeeValue: "",
				payCreditWithdrawalFeeVal: "",
				quickCreditWithdrawalFeeValue: "",
				quickCreditWithdrawalFeeVal: "",
				alipayWithdrawalFeeValue: "",
				alipayWithdrawalFeeVal: "",
				wxWithdrawalFeeValue: "",
				wxWithdrawalFeeVal: "",
				unionPayWithdrawalFeeValue: "",
				unionPayWithdrawalFeeVal: "",
				jhPayRateValue: "",
				jhPayRateVal: "",
				jhptPayRateValue: "",
				jhptPayRateVal: "",
				jhPayWithdrawalFeeValue: "",
				jhPayWithdrawalFeeVal: "",
				jhptPayWithdrawalFeeValue: "",
				jhptPayWithdrawalFeeVal: "",
				zyPayRateValue: "",
				zyPayRateVal: "",
				zyPayWithdrawalFeeValue: "",
				zyPayWithdrawalFeeVal: "",
				
				isTermShow: false,
				termList: []
			};
		},
		computed: {
			policyList() {
				return this.$store.getters.policyList || [];
			}
		},
		onLoad(o) {
			//政策默认第一个
			this.query.policyCode = this.policyList[0].policyCode;
			this.query.policyName = this.policyList[0].policyName;
			this.getSList();
			this.getBrandListAndDepositList();
			this.init()
			this.getbrandList()
			// let item = this.policyList.find((item) => item.policyCode == o.policyCode);
			// if (item) {
			//   this.query.policyName = item.policyName;
			// }
			// this.getList();
		},
		methods: {
			async checkEditAgentFeeRange(type){
			 await queryLoginFeeRange(type).then((response) => {
			    if(response.msg =='无操作权限'){
			        this.iscanmodify=false;
			    }else{
			        this.iscanmodify=true;
			    }
			  })
			},
			getbrandList() {
				// brandStatus: 1
				let params = {
					pageNum: 1,
					pageSize: 200
				}
				brandList(params).then(res => {
					this.termList = res.rows.filter(item=> item.brandStatus == 1)
					this.termList = this.termList.filter(item => item.channelCode != "liaoyuan" && item.channelCode != "qiantu")
				})
			},
			goDetail(row) {
				let code=this.brandListData.find(item => item.brandCode == row.brandCode).channelCode;
				getCtTermById(row.id).then(res => {
					if (res.code==200 && res.data) {
						 this.$storage.setStore('channleCodes', code);
						 this.$storage.setStore('changeMercDetail', res.data);
						 this.$nav.push({
						 	path: '/pages/home/policy/changeMercDetail'
						 });
					}else{
						this.$storage.setStore('channleCodes', code);
						this.$storage.setStore('changeMercDetail', row);
						this.$nav.push({
							path: '/pages/home/policy/changeMercDetail'
						});
					}
				});
			},
			getBrandListAndDepositList(){
				brandList({ pageSize: 200, pageNum: 1 }).then((res) => {
					this.brandListDataAll = res.rows;
					this.brandListData = this.brandListDataAll.filter(item=> item.brandStatus==1);//过滤禁用的品牌(防止禁用的品牌有历史数据)
					var data =res.rows;
					var hash = {};
					data = data.reduce(function (item, next) {
					  hash[next.channelCode] ? '' : hash[next.channelCode] = true && item.push(next);
						return item;
					}, []);
					this.channelListData = data;
				  });
				agentList({ pageSize: 200, pageNum: 1 }).then((res) => {
					this.serviceRateList = res.rows;
			 
				  });	  
			},
			onNavigationBarButtonTap(e) {
				this.$nav.push({
					path: '/pages/home/policy/changeRateList'
				});
			},
			async getSList(no) {
				let data = await merchBindTermList({
					pageSize: 200,
					pageNum: 1,
					activeType: 0,
					policyStatus: 1,
					policyCode: this.query.policyCode,
					agentType:1,
					merchNo: no
				})
				// this.serviceRateList = data.rows;
			},
			toDetail(item) {
				console.log(item)
				this.$storage.setStore('termDetailInfo', item);
				this.$nav.push({
					path: '/pages/home/terminal/terminalInfo'
				});
			},
			sureHandle() {
				// if (!this.query.rateCode || !this.query.rateType) {
				// 	return this.$tip.toast('请选择修改的费率!');
				// }
				//根据渠道区分需要判断的参数，并判断费率是否在配置范围内，(else里的写法不能换行，不然判断失效)
				if(this.form.payCreditRate==null){
					return this.$tip.modal({content: '请输入贷记卡费率',showCancel: false});
				}else{
					if(!this.payCreditRateVal.test(this.form.payCreditRate))return this.$tip.modal({content: '贷记卡费率只能是'+this.payCreditRateValue,showCancel: false});
				}
				// if(this.form.zfbRate==null){
				// 	return this.$tip.modal({content: '请输入支付宝费率',showCancel: false});
				// }else{
				// 	if(!this.zfbRateVal.test(this.form.zfbRate))return this.$tip.modal({content: '支付宝费率只能是'+this.zfbRateValue,showCancel: false});
				// }
				// if(this.form.wxRate==null){
				// 	return this.$tip.modal({content: '请输入微信费率',showCancel: false});
				// }else{
				// 	if(!this.wxRateVal.test(this.form.wxRate))return this.$tip.modal({content: '微信费率只能是'+this.wxRateValue,showCancel: false});
				// }
				
				if(this.channel =="liaoyuan"){
					// if(this.form.quickCreditRate==null){
					// 	return this.$tip.modal({content: '请输入云闪付费率',showCancel: false});
					// }else{
					// 	if(!this.quickCreditRateVal.test(this.form.quickCreditRate))return this.$tip.modal({content: '云闪付费率只能是'+this.quickCreditRateValue,showCancel: false});
					// }
					// if(this.form.additionalPro==null){
					// 	return this.$tip.modal({content: '请输入提现费',showCancel: false});
					// }else{
					// 	if(!this.additionalProVal.test(this.form.additionalPro))return this.$tip.modal({content: '提现费只能是'+this.additionalProValue,showCancel: false});
					// }
				}
				
				if(this.channel !="liaoyuan"){
					// if(this.form.unionPayRate==null){
					// return this.$tip.modal({content: '请输入银联扫码费率',showCancel: false});
					// }else{
					//  if(!this.unionPayRateVal.test(this.form.unionPayRate))return this.$tip.modal({content: '银联扫码费率只能是'+this.unionPayRateValue,showCancel: false});
					// }
					if(this.form.payCreditWithdrawalFee==null){
					return this.$tip.modal({content: '请输入贷记卡提现费',showCancel: false});
					}else{
					 if(!this.payCreditWithdrawalFeeVal.test(this.form.payCreditWithdrawalFee))return this.$tip.modal({content: '贷记卡提现费只能是'+this.payCreditWithdrawalFeeValue,showCancel: false});
					}
					// if(this.form.quickCreditWithdrawalFee==null){
					// return this.$tip.modal({content: '请输入云闪付提现费',showCancel: false});
					// }else{
					//  if(!this.quickCreditWithdrawalFeeVal.test(this.form.quickCreditWithdrawalFee))return this.$tip.modal({content: '云闪付提现费只能是'+this.quickCreditWithdrawalFeeValue,showCancel: false});
					// }
					// if(this.form.unionPayWithdrawalFee==null){
					// return this.$tip.modal({content: '请输入银联扫码提现费',showCancel: false});
					// }else{
					//  if(!this.unionPayWithdrawalFeeVal.test(this.form.unionPayWithdrawalFee))return this.$tip.modal({content: '银联扫码提现费只能是'+this.unionPayWithdrawalFeeValue,showCancel: false});
					// }
					// if(this.form.alipayWithdrawalFee==null){
					// return this.$tip.modal({content: '请输入支付宝提现费',showCancel: false});
					// }else{
					//  if(!this.alipayWithdrawalFeeVal.test(this.form.alipayWithdrawalFee))return this.$tip.modal({content: '支付宝提现费只能是'+this.alipayWithdrawalFeeValue,showCancel: false});
					// }
					// if(this.form.wxWithdrawalFee==null){
					// return this.$tip.modal({content: '请输入微信提现费',showCancel: false});
					// }else{
					//  if(!this.wxWithdrawalFeeVal.test(this.form.wxWithdrawalFee))return this.$tip.modal({content: '微信提现费只能是'+this.wxWithdrawalFeeValue,showCancel: false});
					// }
				}
				
				//聚合扫码
				//汇收银
				if(this.form.jhPayRate==null){
				return this.$tip.modal({content: '请输入汇收银扫码费率',showCancel: false});
				}else{
				 if(!this.jhPayRateVal.test(this.form.jhPayRate))return this.$tip.modal({content: '汇收银扫码费率只能是'+this.jhPayRateValue,showCancel: false});
				}
				if(this.form.jhPayWithdrawalFee==null){
				return this.$tip.modal({content: '请输入汇收银扫码提现费',showCancel: false});
				}else{
				 if(!this.jhPayWithdrawalFeeVal.test(this.form.jhPayWithdrawalFee))return this.$tip.modal({content: '汇收银扫码提现费只能是'+this.jhPayWithdrawalFeeValue,showCancel: false});
				}
				//聚收银
				if(this.form.jhptPayRate==null){
				return this.$tip.modal({content: '请输入聚收银扫码费率',showCancel: false});
				}else{
				 if(!this.jhptPayRateVal.test(this.form.jhptPayRate))return this.$tip.modal({content: '聚收银扫码费率只能是'+this.jhptPayRateValue,showCancel: false});
				}
				if(this.form.jhptPayWithdrawalFee==null){
				return this.$tip.modal({content: '请输入聚收银扫码提现费',showCancel: false});
				}else{
				 if(!this.jhptPayWithdrawalFeeVal.test(this.form.jhptPayWithdrawalFee))return this.$tip.modal({content: '聚收银扫码提现费只能是'+this.jhptPayWithdrawalFeeValue,showCancel: false});
				}
				//一码聚
				if(this.form.zyPayRate==null){
				return this.$tip.modal({content: '请输入一码聚扫码费率',showCancel: false});
				}else{
				 if(!this.zyPayRateVal.test(this.form.zyPayRate))return this.$tip.modal({content: '一码聚扫码费率只能是'+this.zyPayRateValue,showCancel: false});
				}
				if(this.form.zyPayWithdrawalFee==null){
				return this.$tip.modal({content: '请输入一码聚扫码提现费',showCancel: false});
				}else{
				 if(!this.zyPayWithdrawalFeeVal.test(this.form.zyPayWithdrawalFee))return this.$tip.modal({content: '一码聚扫码提现费只能是'+this.zyPayWithdrawalFeeValue,showCancel: false});
				}
				 
				let paramsList = []
				let checkserialnoList = []
				this.list.map(item => {
					console.log(item)
					if (item.isActive) {
						let obj = {
							serialno: item.serialno,
							merchNo: item.merchNo,
							rateCode: this.query.rateCode,
							autoChannelFlag: 0
						};
						paramsList.push(obj);
						checkserialnoList.push(item.serialno);
					}
				});
				if (paramsList.length <= 0) {
					return this.$tip.toast('请选择机具');
				}
				if(this.channel=="yinsheng" || this.channel=="zhaixing"){
					this.form.quickCreditRate = "";
				}
				 let paramsLists={
					serialno: checkserialnoList,
					channel: this.channel=="liaoyuan"?"merch_rate_liaoyuan":"merch_rate",
				 	payCreditRate:this.form.payCreditRate==null?0:this.form.payCreditRate,
				 	// quickCreditRate:this.form.quickCreditRate==null?0:this.form.quickCreditRate,
				 	// zfbRate:this.form.zfbRate==null?0:this.form.zfbRate,
				 	// wxRate:this.form.wxRate==null?0:this.form.wxRate,
				 	// unionPayRate:this.form.unionPayRate==null?0:this.form.unionPayRate,
				 	payCreditWithdrawalFee:this.form.payCreditWithdrawalFee==null?0:this.form.payCreditWithdrawalFee,
				 	// additionalPro:this.form.additionalPro==null?0:this.form.additionalPro,
				 	// quickCreditWithdrawalFee:this.form.quickCreditWithdrawalFee==null?0:this.form.quickCreditWithdrawalFee,
				 	// unionPayWithdrawalFee:this.form.unionPayWithdrawalFee==null?0:this.form.unionPayWithdrawalFee,
				 	// alipayWithdrawalFee:this.form.alipayWithdrawalFee==null?0:this.form.alipayWithdrawalFee,
				 	// wxWithdrawalFee:this.form.wxWithdrawalFee==null?0:this.form.wxWithdrawalFee
					jhPayRate:this.form.jhPayRate==null?0:this.form.jhPayRate,
					jhPayWithdrawalFee:this.form.jhPayWithdrawalFee==null?0:this.form.jhPayWithdrawalFee,
					jhptPayRate:this.form.jhptPayRate==null?0:this.form.jhptPayRate,
					jhptPayWithdrawalFee:this.form.jhptPayWithdrawalFee==null?0:this.form.jhptPayWithdrawalFee,
					zyPayRate:this.form.zyPayRate==null?0:this.form.zyPayRate,
					zyPayWithdrawalFee:this.form.zyPayWithdrawalFee==null?0:this.form.zyPayWithdrawalFee
				 };
				console.log(paramsLists)
				changeRateApply(paramsLists).then(res => {
					this.submitPopup = false;
					if (res.code!=200) {
						this.$tip.modal({
							content: res.msg,
							showCancel: false
						});
					} else {
						this.$tip.modal({
							content: '变更费率申请已受理',
							showCancel: false
						});
						this.init();
					}
					// 这是之前的回参处理
					// if (res.data && res.data.length) {
					// 	let msg = '';
					// 	res.data.forEach(item => {
					// 		msg += `sn号:${item.serialno},失败原因:${item.msg}.`;
					// 	});
					// 	this.$tip.modal({
					// 		content: msg,
					// 		showCancel: false
					// 	});
					// } else {
					// 	this.$tip.modal({
					// 		content: '变更费率申请已受理，请前往【变更记录】查看变更进度',
					// 		showCancel: false
					// 	});
					// 	this.init();
					// }
				});
			},
			getSubAgent() {
				getByName().then(res => {
					this.serviceRateList = res.data;
				});
			},
			search() {
				this.init();
			},
			
			reachBottomCallBack() {
				this.getList();
			},
			init() {
				this.$nextTick(() => {
					this.list = [];
					this.pageNum = 1;
					this.selectCheckbox = [];
					this.refreshLoad();
				});
			},
			//获取到商户列表舒服存放到list
			getList() {
				let params = {
					pageNum: this.pageNum,
					pageSize: this.pageSize,
					agentType:1,
					...this.query
				};
				merchBindTermList(params).then(res => {
					var list = res.rows;
					this.totalNum = res.total;
					this.loadMoreStatusDeal(list);
					if (list.length > 0) {
						this.list = this.list.concat(list);
						//alert(JSON.stringify(this.list));
					}
				});
				
			},
			async isMerchHandel() {
				await this.getSList(this.query.agentNo);
				if (this.serviceRateList.length == 0) {
					return this.$tip.toast('暂未搜索到该代理商!')
				}
				this.chooseMerch = true;
			},
			scanCode(type) {
				let _this = this;
				// #ifdef APP-PLUS
				console.log(123);
				const currentWebview = this.$mp.page.$getAppWebview(); //注意相关操作写在APP-PLUS条件编译下
				var barcode = plus.barcode.create('barcode', [plus.barcode.QR], {
					top: '100px',
					left: '0px',
					width: '300px',
					height: '300px',
					position: 'static'
				});
				//此处未演示扫码成功回调的地址设置，实际请参考HTML5Plus API自行处理
				//注意扫码区域需为正方形，否则影响扫码识别率
				currentWebview.append(barcode);
				// #endif
				// this.$tip.loading('识别中....')
				// // #ifdef H5
				// this.$tip.toast('暂不支持!');
				// // #endif
				// // #ifndef H5
				// uni.scanCode({
				// 	success(res) {
				// 		_this.$tip.loaded();
				// 		_this.$tip.toast('识别成功!');
				// 		if (type == 'start') {
				// 			_this.query.startNo = res.result;
				// 		} else {
				// 			_this.query.endNo = res.result;
				// 		}
				// 	},
				// 	fail() {
				// 		_this.$tip.loaded();
				// 	}
				// });
				//// #endif
			},
			clickItem(e) {
				this.query.pType = this.pList[e].value;
				this.query.pTypeName = this.pList[e].text;
			},
			onMerConfirm(e) {
				this.query.agentNo = this.serviceRateList[e[0]].agentNo;
				this.query.agentName = this.serviceRateList[e[0]].agentName;
				this.init();
			},
			onServiceConfirm2(e) {
				this.query.rateTypeName = this.canChangeServiceFeeList[e[0]].rateTypeName;
				this.query.rateType = this.canChangeServiceFeeList[e[0]].rateType;
				changeMerchRateGroupList({
					pageNum: 1,
					brandCode: this.query.brandCode,
					rateType: this.query.rateType,
					status: 1,
					pageSize: 200,
				}).then(res => {
					this.canChangeGroupList = res.rows
				})
			},
			onGroupConfirm(e) {
				this.query.rateCode = this.canChangeGroupList[e[0]].rateCode;
				this.query.rateGroupName = this.canChangeGroupList[e[0]].appShowName;
			},
			termConfirm(e) {
				// console.log('选中机具')
				// console.log(e)
				this.query.brandCode = this.termList[e[0]].brandCode;
				this.query.brandName = this.termList[e[0]].brandName;
				this.init();
			},
			onConfirm(e) {
				this.query.policyCode = this.policyList[e[0]].policyCode;
				this.query.policyName = this.policyList[e[0]].policyName;
				this.query.agentName = '';
				this.query.agentNo = '';
				this.init();
				// this.chooseIndex = e[0];
			},
			chagneActive(item) {
				item.isActive = !item.isActive
				this.$forceUpdate();
			},
			checkboxGroupChange(v) {
				// alert(JSON.stringify(this.list));
				this.selectCheckbox = v;
			},
			
			allCheckHandle() {
				/** 全选 **/
				let arr = [];
				const list = this.list;
				let isAllSelect = list.every(item => item.isActive);
				if (isAllSelect) {
					return this.$tip.toast('已经全部添加了！');
				}
				if (list.length > 0 && this.selectCheckbox.length > 0) {
					if (this.selectCheckbox[0].brandId != list[0].brandId) {
						return this.$tip.toast('请选择同一品牌的机具!');
					}
				}
				if (list.length > 0) {
					let idList = this.list.map(item => item.id);
					this.list.map(item => {
						item.isActive = true;
						return item;
					});
					// let selectIdList = this.selectCheckbox.map(item => item.id);
					// let selectIdList = this.selectCheckbox;

					this.selectCheckbox = this.list.map(item => item.serialno);

					// list.forEach((item) => {
					// if (list.length === checkBoxLength) {
					//   this.selectCheckbox = [];
					//   this.allCheckBoxFlag = false;
					// } else {
					//   this.allCheckBoxFlag = true;
					//   arr.push(item);
					// }
					// });
				}
			},
			//勾选的校验数据
			checkData(){
			  let yinsheng = 0;
			  let liaoyuan = 0;
			  let statusNum = 0;
			  this.list.map(item => {
					if(item.isActive && item.brandCode=='yinsheng'){
					   yinsheng = yinsheng+1;
					}
					if(item.isActive && (item.brandCode=='20017' || item.brandCode=='20005' ||
						item.brandCode=='20010' || item.brandCode=='10001')){
						  liaoyuan = liaoyuan+1;
					}
					if (item.isActive && item.bindStatus == 1) {
						statusNum = statusNum + 1;
					}
				});
			  
			  let channel = "";
			  if(liaoyuan==this.selectCheckbox.length){
				channel = "liaoyuan";
			  }else if(yinsheng==this.selectCheckbox.length){
				channel = "yinsheng";
			  }else if((yinsheng>0 && yinsheng<this.selectCheckbox.length) || (liaoyuan>0 && liaoyuan<this.selectCheckbox.length)){
				channel = "nounified";
			  }else {
				channel = "zhaixing";
			  }
			  if(this.selectCheckbox.length <=0){
				channel = "";
			  }
			  this.channel = channel;
			  this.statusNum = statusNum;
			},
			
			async issuedHandle() {
				this.query.rateTypeName = '';
				this.query.rateType = '';
			
				/** 下发机具 **/
				if (this.selectCheckbox.length == 0) {
					return this.$tip.toast('请选择修改机具');
				}
				
				//查询用户是否有修改费率权限
				await this.checkEditAgentFeeRange("switch");
				if(this.iscanmodify==false){
					return this.$tip.toast("用户无修改费率权限，请联系管理员！");
				}
				
				/** 如果只选中一条数据，把原有费率数据带到修改界面 **/
				if(this.selectCheckbox.length <= 1){
					this.ctterm=this.list.find(item => item.serialno == this.selectCheckbox[0]); 
					getCtTermById(this.ctterm.id).then(res => {
						if (res.code==200 && res.data) {
							this.form.payCreditRate=res.data.payCreditRate;
							this.addchangeV2(this.form.payCreditRate, 'payCreditRate')
							this.form.quickCreditRate=res.data.quickCreditRate;
							this.form.zfbRate=res.data.zfbRate;
							this.form.wxRate=res.data.wxRate;
							this.form.unionPayRate=res.data.unionPayRate;
							this.form.payCreditWithdrawalFee=res.data.payCreditWithdrawalFee;
							this.form.additionalPro=res.data.additionalPro;
							this.form.quickCreditWithdrawalFee=res.data.quickCreditWithdrawalFee;
							this.form.unionPayWithdrawalFee=res.data.unionPayWithdrawalFee;
							this.form.alipayWithdrawalFee=res.data.alipayWithdrawalFee;
							this.form.wxWithdrawalFee=res.data.wxWithdrawalFee;
							this.form.jhPayRate=res.data.jhPayRate;
							this.addchangeV2(this.form.jhPayRate, 'jhPayRate')
							this.form.jhPayWithdrawalFee=res.data.jhPayWithdrawalFee;
							this.form.jhptPayRate=res.data.jhptPayRate;
							this.addchangeV2(this.form.jhptPayRate, 'jhptPayRate')
							this.form.jhptPayWithdrawalFee=res.data.jhptPayWithdrawalFee;
							this.form.zyPayRate=res.data.zyPayRate;
							this.form.zyPayWithdrawalFee=res.data.zyPayWithdrawalFee;
							this.addchangeV2(this.form.zyPayRate, 'zyPayRate')
						}
					});
				}else{
					this.form.payCreditRate=null;
					this.form.quickCreditRate=null;
					this.form.zfbRate=null;
					this.form.wxRate=null;
					this.form.unionPayRate=null;
					this.form.payCreditWithdrawalFee=null;
					this.form.additionalPro=null;
					this.form.quickCreditWithdrawalFee=null;
					this.form.unionPayWithdrawalFee=null;
					this.form.alipayWithdrawalFee=null;
					this.form.wxWithdrawalFee=null;
					this.form.jhPayRate=null;
					this.form.jhPayWithdrawalFee=null;
					this.form.jhptPayRate=null;
					this.form.jhptPayWithdrawalFee=null;
				}

				let index = this.list.findIndex(item => item.serialno == this.selectCheckbox[0])
				if (index == -1) {
					return this.$tip.toast('没有找到机具!请重新选择!')
				}
				console.log(this.selectCheckbox[0], index);
				let brandCode = this.list[index].brandCode
				this.query.brandCode = brandCode
				// canChangeRateType({
				// 	brandCode: brandCode
				// }).then(res => {
				// 	if (res.data.length) {
				// 		this.canChangeServiceFeeList = res.data;
				// 		this.submitPopup = true;
				// 	} else {
				// 		return this.$tip.toast('无可修改费率类型!');
				// 	}
				// });
				// alert(this.selectCheckbox);
		
				//数据校验，同渠道才能修改
				this.checkData();
			
				if(this.channel=="nounified"){
					return this.$tip.toast('请选择相同渠道的终端机修改!');
				}
				if(this.statusNum>0 && this.channel=="liaoyuan"){
					return this.$tip.toast('终端已绑定,不允许修改!');
				}
				 
				this.submitPopup = true;
				if(this.channel=="liaoyuan"){
					this.checkRate("merch_rate_liaoyuan");
				}else if(this.channel=="qiantu"){
					this.checkRate("merch_rate_qiantu");
					this.form.quickCreditRate = 0.58;
				}else{
					this.form.quickCreditRate = 0.58;//设置银盛云闪付默认费率,提交的时候清空
					this.checkRate("merch_rate");
				}
			},
			
			
			clickStopChooseRate(valueType){
				console.log({valueType})
				this[valueType] = true;
			},
			//费率正则表达式（部分表达式有问题）
			selectRateValue(value, type){
			  if(!value || !type){
				return;
			  }
			  if(type==1){
				let arr = value.split("");
				if(parseInt(arr[7])-parseInt(arr[2]) > 1){
				return new RegExp("^"+arr[0]+"\\."+arr[2]+"["+arr[3]+"-9]|["+(parseInt(arr[2])+1)+"-"+(parseInt(arr[7])-1)+"][0-9]|"+arr[7]+"[0-"+arr[8]+"]$");
				}
				if(parseInt(arr[7])-parseInt(arr[2]) == 1){
				  return new RegExp("^"+arr[0]+"\\."+arr[2]+"["+arr[3]+"-9]|"+arr[7]+"[0-"+arr[8]+"]$");
				}
				if(parseInt(arr[7])-parseInt(arr[2]) < 1){
				  return new RegExp("^"+arr[0]+"\\."+arr[2]+"["+arr[3]+"-"+arr[8]+"]$");
				}
			  }
			  if(type==2){
				return new RegExp("^["+value+"]$");
			  }
		
			},
			//费率最后一位不写自动补0
			addchange(value, name){
			  if(value && value.length>1){
				let sp= value.split(".");
				if(sp.length>1){
					if(sp[1].toString().length<=1){
					  if(name=="payCreditRate"){
						this.form.payCreditRate = value + "0";
					  }
					  if(name=="jhPayRate"){
						this.form.jhPayRate = value + "0";
					  }
					  if(name=="jhptPayRate"){
						this.form.jhptPayRate = value + "0";
					  }
					  if(name=="zyPayRate"){
						this.form.zyPayRate = value + "0";
					  }
					  if(name=="quickCreditRate"){
						this.form.quickCreditRate = value + "0";
					  }
					  if(name=="zfbRate"){
						this.form.zfbRate = value + "0";
					  }
					  if(name=="wxRate"){
						this.form.wxRate = value + "0";
					  }
					  if(name=="unionPayRate"){
						this.form.unionPayRate = value + "0";
					  }
					}
				}
			  }
			},
			//费率最后一位不写自动补0
			addchangeV2(data, name){
			  let value = data.toString()
			  if(value && value.length>1){
				let sp= value.split(".");
				if(sp.length>1){
					if(sp[1].toString().length<=1){
					  if(name=="payCreditRate"){
						this.form.payCreditRate = value + "0";
						// console.log('费率小数payCreditRate' + this.form.payCreditRate)
					  }
					  if(name=="jhPayRate"){
						this.form.jhPayRate = value + "0";
						// console.log('费率小数jhPayRate' + this.form.jhPayRate)
					  }
					  if(name=="jhptPayRate"){
						this.form.jhptPayRate = value + "0";
						// console.log('费率小数jhptPayRate' + this.form.jhptPayRate)
					  }
					  if(name=="zyPayRate"){
						this.form.zyPayRate = value + "0";
					  }
					}
				}
			  }
			},	
			//设置费率校验
			checkRate(type){
				console.log("渠道:" + type)
			  //设置费率校验
			  queryFeeRange(type).then((response) => {
				const datas = response.data;
				console.log("校验数据")
				console.log(datas)
				// let payCreditRateValue = "";
				// // let payCreditRateVal = "";
				// let quickCreditRateValue = "";
				// // let quickCreditRateVal = "";
				// let zfbRateValue = "";
				// // let zfbRateVal = "";
				// let wxRateValue = "";
				// // let wxRateVal = "";
				// let unionPayRateValue = "";
				// // let unionPayRateVal = "";
				// let additionalProValue = "";
				// // let additionalProVal = "";
				// let payCreditWithdrawalFeeValue = "";
				// // let payCreditWithdrawalFeeVal = "";
				// let quickCreditWithdrawalFeeValue = "";
				// // let quickCreditWithdrawalFeeVal = "";
				// let alipayWithdrawalFeeValue = "";
				// // let alipayWithdrawalFeeVal = "";
				// let wxWithdrawalFeeValue = "";
				// // let wxWithdrawalFeeVal = "";
				// let unionPayWithdrawalFeeValue = "";
				// // let unionPayWithdrawalFeeVal = "";
				Object.keys(datas).map((key) => {
				  if (datas[key].dictLabel == ('贷记卡费率')) {
					this.payCreditRateValue= datas[key].dictValue;
					this.payCreditRateVal= this.selectRateValue(this.payCreditRateValue, 1);
				  }
				  if (datas[key].dictLabel == ('云闪付费率')) {
					this.quickCreditRateValue = datas[key].dictValue;
					this.quickCreditRateVal = this.selectRateValue(this.quickCreditRateValue, 1);
				  }
				  if (datas[key].dictLabel == ('支付宝费率')) {
					this.zfbRateValue = datas[key].dictValue;
					this.zfbRateVal = this.selectRateValue(this.zfbRateValue, 1);
				  }
				  if (datas[key].dictLabel == ('微信费率')) {
					this.wxRateValue = datas[key].dictValue;
					this.wxRateVal = this.selectRateValue(this.wxRateValue, 1);
				  }
				  if (datas[key].dictLabel == ('银联扫码费率')) {
					this.unionPayRateValue = datas[key].dictValue;
					this.unionPayRateVal = this.selectRateValue(this.unionPayRateValue, 1);
				  }
				  if (datas[key].dictLabel == ('提现费')) {
					this.additionalProValue = datas[key].dictValue;
					this.additionalProVal = this.selectRateValue(this.additionalProValue, 2);
				  }
				  if (datas[key].dictLabel == ('贷记卡提现费')) {
					this.payCreditWithdrawalFeeValue = datas[key].dictValue;
					this.payCreditWithdrawalFeeVal = this.selectRateValue(this.payCreditWithdrawalFeeValue, 2);
				  }
				  if (datas[key].dictLabel == ('云闪付提现费')) {
					this.quickCreditWithdrawalFeeValue = datas[key].dictValue;
					this.quickCreditWithdrawalFeeVal = this.selectRateValue(this.quickCreditWithdrawalFeeValue, 2);
				  }
				  if (datas[key].dictLabel == ('支付宝提现费')) {
					this.alipayWithdrawalFeeValue = datas[key].dictValue;
					this.alipayWithdrawalFeeVal = this.selectRateValue(this.alipayWithdrawalFeeValue, 2);
				  }
				  if (datas[key].dictLabel == ('微信提现费')) {
					this.wxWithdrawalFeeValue = datas[key].dictValue;
					this.wxWithdrawalFeeVal = this.selectRateValue(this.wxWithdrawalFeeValue, 2);
				  }
				  if (datas[key].dictLabel == ('银联扫码提现费')) {
					this.unionPayWithdrawalFeeValue = datas[key].dictValue;
					this.unionPayWithdrawalFeeVal = this.selectRateValue(this.unionPayWithdrawalFeeValue, 2);
				  }
				  if (datas[key].dictLabel == ('汇收银扫码费率')) {
					this.jhPayRateValue = datas[key].dictValue;
					this.jhPayRateVal = this.selectRateValue(this.jhPayRateValue, 1);
				  }
				  if (datas[key].dictLabel == ('汇收银扫码提现费')) {
					this.jhPayWithdrawalFeeValue = datas[key].dictValue;
					this.jhPayWithdrawalFeeVal = this.selectRateValue(this.jhPayWithdrawalFeeValue, 2);
				  }
				  if (datas[key].dictLabel == ('聚收银扫码费率')) {
					this.jhptPayRateValue = datas[key].dictValue;
					this.jhptPayRateVal = this.selectRateValue(this.jhptPayRateValue, 1);
				  }
				  if (datas[key].dictLabel == ('聚收银扫码提现费')) {
					this.jhptPayWithdrawalFeeValue = datas[key].dictValue;
					this.jhptPayWithdrawalFeeVal = this.selectRateValue(this.jhptPayWithdrawalFeeValue, 2);
				  }
				  if (datas[key].dictLabel == ('一码聚扫码费率')) {
					this.zyPayRateValue = datas[key].dictValue;
					this.zyPayRateVal = this.selectRateValue(this.zyPayRateValue, 1);
				  }
				  if (datas[key].dictLabel == ('一码聚扫码提现费')) {
					this.zyPayWithdrawalFeeValue = datas[key].dictValue;
					this.zyPayWithdrawalFeeVal = this.selectRateValue(this.zyPayWithdrawalFeeValue, 2);
				  }
				})
			  });
			}
		}
	};
</script>
<style scoped lang="scss">
	.container {
		padding: R(30) 0 R(140);
	}
	
	.form {
		background: #fff;
	
		.item {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-left: 30upx;
			padding: 10upx 8upx;
			font-size: 28upx;
			font-weight: 400;
			color: #262626;
			
			.text {
				width: 150px;
				text-align: left;
			}
	
			.input {
				flex: 1;
				text-align: left;
				margin-left: auto;
				font-size: 28upx;
				color: #333; 
			}
			
			.placeholder-style {
				color: #7d7d7d;
			}
		}
	}

	.fliter {
		margin: 0 R(25);

		.single-input {
			flex-wrap: wrap;
			align-items: center;

			.item {
				background: #fff;
				width: 100%;
				padding-right: R(30);
				padding-left: R(10);
				height: R(80);
				background: #ffffff;
				border-radius: R(40);
				margin-bottom: R(20);

				.icon-saoma {
					color: $themeColor;
				}
			}
		}

		.double-input {
			flex-wrap: wrap;
			align-items: center;

			.item {
				background: #fff;
				width: 48%;
				height: R(80);
				background: #ffffff;
				border-radius: R(40);
				margin-bottom: R(20);

				.icon-saoma {
					color: $themeColor;
				}
			}
		}
	}

	.termial-box {
		margin: 0 R(25);
		background: #fff;
		border-radius: R(10);
		padding: R(26) R(30);

		.total {
			font-size: R(24);
			font-weight: 400;
			color: #737373;
			margin-bottom: R(20);

			.blue {
				color: #4286f5;
			}
		}

		/deep/.u-checkbox-group {
			width: 100%;
		}

		.t-item {
			padding: R(14) 0 R(24);
			width: 100%;
			border-bottom: 1px solid #eee;

			.title {
				font-size: R(30);
				font-weight: bold;
				color: #1a1a1a;

				/deep/.u-cell__value {
					color: #1a1a1a;
				}
			}

			/deep/.u-cell {
				padding: R(4) R(10);

				.u-cell__value {
					text-align: left;
				}
			}
		}
	}

	.terminal-top-bottom {
		position: fixed;
		bottom: 0;
		left: 0;
		z-index: 100;
		width: 100%;
		padding-bottom: env(safe-area-inset-bottom);
		background-color: #fff;
		-webkit-user-select: none;
		user-select: none;
	}

	.terminal-top-bottom-bar {
		display: -webkit-box;
		display: -webkit-flex;
		display: flex;
		-webkit-box-align: center;
		-webkit-align-items: center;
		align-items: center;
		-webkit-box-pack: end;
		height: R(104);
		font-size: R(28);

		.add-all {
			font-size: R(28);
			height: R(60);
			width: R(150);
		}

		.sure-btn {
			height: R(88);
			margin-right: R(30);
		}
	}

	.terminal-top-bottom-item-all,
	.terminal-top-bottom-item-number,
	.terminal-top-bottom-item-look {
		flex: 1;
	}

	.terminal-top-bottom-item-look {
		color: #a5a5a5;
	}

	.alertP {
		text-align: center;

		.title {
			padding: R(20);
			font-size: R(30);
			font-weight: 400;
			color: #000;
			// border-bottom: 1px solid #eee;
		}

		.alertPopupContent {
			padding: R(10) 0 R(30);
		}

		.sub-t {
			font-size: R(26px);
			font-weight: 400;
			color: #737373;
		}

		.content {
			color: #5798f3;
			padding-top: R(10);
		}

		.item-input {
			padding: R(0) R(20);
			height: R(60);
			background: #fff;
			border-top: 1px dashed #eee;
			margin-top: R(30);

			.icon-saoma {
				color: $themeColor;
			}
		}

		.sure {
			text-align: center;
			// padding: R(20);
			height: R(92);
			line-height: R(92);
			font-size: R(30);
			border-top: 1px solid #eee;
			color: $themeColor;

			.border {
				border-right: 1px solid #eee;
			}

			text {
				width: 50%;
				font-size: R(30);
				font-weight: 400;
				color: #262626;
			}

			.confirm {
				color: #5798f3;
			}
		}

		/deep/.van-dialog__header {
			padding: 7px;
			font-weight: 500;
			line-height: 24px;
			text-align: center;
			border-bottom: 1px solid #eee;
		}

		p:not(:last-child) {
			margin-bottom: 5px;
		}
	}

	.nodata {
		text-align: center;
		color: #999;
		padding-top: R(30);
	}
</style>